
import Base from './_class-base'

/**
 * 语法糖，合并 class 和 T
 * @param val 对象
 * @returns 
 */
export default function Model<T extends object> (val: T) {
  const re = new Base<T>(val)
  return re as T & Base<T>
}